Whitelist selected chars known to NOT crash the 60CS but are technically forbidden...
authorrobertl <robertl>
Wed, 9 Jan 2008 04:11:23 +0000 (04:11 +0000)
committerrobertl <robertl>
Wed, 9 Jan 2008 04:11:23 +0000 (04:11 +0000)
garmin.c

index dcd8fbe9171fe1957df9d61ba0c6ebba74bdd005..4f4ac84db16853dfe88c0f9179bd475aea29232e 100644 (file)
--- a/garmin.c
+++ b/garmin.c
@@ -163,6 +163,11 @@ rw_init(const char *fname)
                                        /* This might be 8859-1 */
                                        receiver_charset = CET_CHARSET_MS_ANSI;
                                        break;
+                               case 291: /* GPSMAP 60CS, probably others */
+                                       receiver_short_length = 10;
+                                       valid_waypt_chars = MILITANT_VALID_WAYPT_CHARS " +-";
+                                       setshort_badchars(mkshort_handle, "\"$.,'!");
+                                       break;
                                case 231: /* Quest */
                                case 463: /* Quest 2 */
                                        receiver_must_upper = 0;